package codeforces;

import java.util.Scanner;

public class BearVasiliy {
	public static void main(String[] args) {
		long x = 0;
		long y = 0;
		Scanner s = new Scanner(System.in);
		x = s.nextLong();
		y = s.nextLong();
		
		int a = (x < 0 && y < 0) || (x > 0 && y > 0)  ? -1 : 1;
		
		long x1;
		long x2;
		long y1;
		long y2;
		
		long b = y - a * x;
		
		x1 = 0;
		y2 = 0;
		x2 = (y2 - b) / a;
		y1 = b;
		
		if(x > 0) {
			System.out.println(x1 + " " + y1 + " " + x2 + " " + y2);
		} else {
			System.out.println(x2 + " " + y2 + " " + x1 + " " + y1);
		}
	}
}
